//
//  HCAppointCollectionViewCell.m
//  HappyChildren
//
//  Created by WillyZhao on 2017/1/21.
//  Copyright © 2017年 WillyZhao. All rights reserved.
//

#import "HCAppointCollectionViewCell.h"

@implementation HCAppointCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.bgView.backgroundColor = YBKRGBCOLOR(242, 242, 242, 1);
    
    // Initialization code
}

-(void)cellWithModel:(NSIndexPath *)indexPath {
    if (self.cellIndexPath.row == indexPath.row) {
        self.statusIMG.hidden = NO;
    }else{
        self.statusIMG.hidden = YES;
    }
}

-(void)cellAddData:(NSDictionary *)dic {
    self.day.text = [NSString stringWithFormat:@"%@",dic[@"day"]];
    
    self.mouth.text = [NSString stringWithFormat:@"%@月",dic[@"mouth"]];
}

-(void)setCellSelected:(BOOL)cellSelected {
    _cellSelected = cellSelected;
    self.statusIMG.hidden = !self.cellSelected;
}

@end
